<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vue渐进式特性</title>
    <script src="https://unpkg.com/vue@3.4.0"></script>
  </head>
  <body>
    <!-- Vue控制的区域 -->
    <div id="app">
      <h1>{{message}}</h1>
    </div>

    <!-- Vue控制范围外的区域 -->
    <div>
      <h1>{{message}}</h1>
      <p>依然故我</p>
    </div>

    <script>
      const { createApp } = Vue
      const App = {
        setup() {
          return {
            message: 'Hello World'
          }
        }
      }
      createApp(App).mount('#app')
    </script>
  </body>
</html>
